package com.icesoft.xsnow.common.security.component;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @program: xsnow
 * @description: 启动测试用黑客用户
 * @author: xuefeng.gao
 * @create: 2019-06-11 10:20
 **/
@Slf4j
@Configuration
@ConditionalOnExpression("!'${security.oauth2.client}'.isEmpty()")
@ConfigurationProperties(prefix = "security.oauth2.client.hacker")
@Data
public class HackerUserProperties {
    private boolean enabled = false;
    private String permission;

    public enum PermissionEnmu{
        admin,guest
    }
}



